<?php
namespace app\admin\controller;
class More extends Init
{
    public function index()
    {
        $more = db('more')->find();
        $this->assign("more", $more);
//        var_dump($more);exit;
        return view();
    }

    public function edit()
    {
        $id = input('id');
        $data = input('post.');
//        var_dump($data);
        if(request()->isPost()) {
            db('more')->where('m_id',$id)->update($data);
            $this->success('修改成功！',url('more/index'));
        }
    }
}